<div class="page-header">
	<ul id="table-tab" class="nav nav-tabs" role="tablist">
		<li role="presentation" class="">
			<a href="#module-tab" aria-controls="module-tab" role="tab" data-toggle="tab">模块管理</a>
		</li>
		<li role="presentation" class="">
			<a href="#menu-tab" aria-controls="menu-tab" role="tab" data-toggle="tab">菜单管理</a>
		</li>
	</ul>
</div>

<div class="tab-content">
	<div id="module-tab" class="tab-pane" role="tabpanel">
		<!--:include("tab_module.html"){}-->
	</div>
	<div id="menu-tab" class="tab-pane" role="tabpanel">
		<!--:include("tab_menu.html"){}-->
	</div>
</div>

<script type="text/javascript">
$(function(){
	$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
		//e.target // 激活的标签页
		//e.relatedTarget // 前一个激活的标签页
		var tabId = $(e.target).attr('aria-controls');
		if(tabId == "module-tab"){
			initTableList('table-module','system/admin/menu/dataGrid', 'table-module-search', 'btn-module-search');
		} else if(tabId == "menu-tab"){
			initTableList('table-menu','system/admin/menu/dataGrid', 'table-menu-search', 'btn-menu-search');
		}
	});
	$('#table-tab a[href="#module-tab"]').tab('show');
});
</script>
